import request from '@/utils/request'

// 填写记录相关API
export const tianxieListAPI = {
    // 查询本人填写记录列表
    getMyTianxieList: (params = {}) => {
        return request.get('/api/v1/repair/my', params)
    },

    // 查询填写记录详情
    getTianxieDetail: (id) => {
        return request.get(`/api/v1/repair/${id}`)
    },

    // 修改填写记录
    patchTianxiePatch: (id, data) => {
        return request.patch(`/api/v1/repair/${id}`, data)
    },

    // 删除填写记录
    deleteTianxie: (id) => {
        return request.delete(`/api/v1/repair/${id}`)
    }
}
